package com.project.common.utils.bean;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Optional;

public abstract class Clone implements Cloneable {

	private static final Logger logger = LoggerFactory.getLogger(Clone.class);

	@Override
	public Object clone() {
		try {
			return super.clone();
		} catch (CloneNotSupportedException e) {
			logger.info("Class[{}]clone fail!", getClass());
		}
		return Optional.empty();
	}

	@Override
	public int hashCode() {
		return super.hashCode();
	}
}
